<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="moduleList" />
<script type="text/javascript">
function btn_onClick(){

	$("#myModal").load('${contextPath}/biz/contract/associated/getModuleContractList',function(){  
	    $("#myModal").modal("show");  
	}); 
	$("#myModal").on('hidden.bs.modal', function (e) {
		
	});

}
</script>
</head>
<body>
  <form:form name="listForm" action="" modelAttribute="student" method="post" class="form-inline" role="form">
	    <input type="hidden" name="deleteIds" >
		<ol class="breadcrumb map_1">
			<li><a href="${contextPath}/index">首页</a></li>
			<li><a href="${contextPath}/biz/example/form/elements?navId=${navId}">样例</a></li>
			<li class="active">学生管理</li>
		</ol>
		<div class="o-l-search-builder f_1">
	         <div id="statement-search-builder" class="collapse" style="height:auto;">
	            <div class="f_2">
	                 <div class="form-group col-sm-6">
	                      <label for="inputEmail3" class="col-sm-3 control-label f_4">签订人：</label>
	                      <div class="col-sm-9 f_6">
	                        <input type="email" class="f_5" id="inputEmail3" placeholder="签订人">
	                      </div>
	                  </div>
	                  <div class="form-group col-sm-6">
	                      <label for="inputEmail3" class="col-sm-3 control-label f_7">创建人：</label>
	                      <div class="col-sm-9 f_6">
	                         <input type="email" class="f_5" id="inputEmail3" placeholder="创建人">
	                      </div>
	                  </div>
	             </div>
	             <div class="f_3">
	                 <div class="form-group col-sm-6">
	                      <label for="inputEmail3" class="col-sm-3 control-label f_4">品牌名：</label>
	                      <div class="col-sm-9 f_6">
	                        <input type="email" class="f_5" id="inputEmail3" placeholder="品牌名">
	                      </div>
	                  </div>
	                  <div class="form-group col-sm-6">
	                      <label for="inputEmail3" class="col-sm-3 control-label f_7">领取人：</label>
	                      <div class="col-sm-9 f_6">
	                         <input type="email" class="f_5" id="inputEmail3" placeholder="领取人">
	                      </div>
	                  </div>
	             </div>
	             <div class="f_2">
	                 <div class="form-group col-sm-6">
	                      <label for="inputEmail3" class="col-sm-3 control-label f_4">区域：</label>
	                      <div class="col-sm-9 f_6">
	                        <input type="email" class="f_5" id="inputEmail3" placeholder="区域">
	                      </div>
	                  </div>
	                  <div class="form-group col-sm-6">
	                      <label for="inputEmail3" class="col-sm-3 control-label f_7">合同状态：</label>
	                      <div class="col-sm-9 f_6">
	                         <input type="email" class="f_5" id="inputEmail3" placeholder="合同状态">
	                      </div>
	                  </div>
	             </div>
	             <div class="f_3">
	                 <div class="form-group col-sm-6">
	                      <label for="inputEmail3" class="col-sm-3 control-label f_4">门店名：</label>
	                      <div class="col-sm-9 f_6">
	                        <select type="email" class="f_5" id="inputEmail3">
	                             <option>1</option>
	                        </select>
	                      </div>
	                  </div>
	                  <div class="form-group col-sm-6">
	                      <label for="inputEmail3" class="col-sm-3 control-label f_7">楼层：</label>
	                      <div class="col-sm-9 f_6">
	                        <select type="email" class="f_5" id="inputEmail3">
	                            <option>1</option>
	                            <option>2</option>
	                        </select>
	                      </div>
	                  </div>
	             </div>
	             <div class="f_2">
	                 <div class="form-group col-sm-6">
	                      <label for="inputEmail3" class="col-sm-3 control-label f_4">开始时间：</label>
	                      <div class="col-sm-9 f_6">
	                        <div class="input-group date o-a-form-datetime" data-date="" data-date-format="yyyy-mm-dd">
	                            <input class="form-control f_13" type="text" readonly/>
	                            <span class="input-group-addon f_time"><i class="glyphicon glyphicon-remove"></i></span>
	                            <span class="input-group-addon f_time"><span class="glyphicon glyphicon-calendar"></span></span>
	                        </div>
	                      </div>
	                  </div>
	                  <div class="form-group col-sm-6">
	                      <label for="inputEmail3" class="col-sm-3 control-label f_7">结束时间：</label>
	                      <div class="col-sm-9 f_6">
	                        <div class="input-group date o-a-form-datetime" data-date="" data-date-format="yyyy-mm-dd">
	                            <input class="form-control f_13" type="text" readonly/>
	                            <span class="input-group-addon f_time"><i class="glyphicon glyphicon-remove"></i></span>
	                            <span class="input-group-addon f_time"><span class="glyphicon glyphicon-calendar"></span></span>
	                        </div>
	                      </div>
	                  </div>
	             </div> 
	         </div>
	         <div class="f_8">
	              <div class="f_2">
	                  <div class="col-sm-8 f_6">
	                       <form:input id="name" path="name"  class="f_5" placeholder="字典类型"/>
	                  </div>
	                  <button type="submit" class="btn btn-warning btn_1">查&nbsp;询</button>
	             </div>
	         </div>
	         <div class="o-l-chevron-down"><a href="#" class="btn btn-default" data-toggle="collapse" data-target="#statement-search-builder" id="chevronDownBtn" role="button"><span id="glyphiconspan" class="glyphicon glyphicon-chevron-up"></span></a>
	         </div>
	     </div>
		<div class="o-l-search-builder f_1">
			  <shiro:hasPermission name="com.maoye.ossp.biz.example.Student:delete">
              	<button type="button" class="btn btn-danger btn_3 btn_right" onclick="Oosp_DelAll('${contextPath}/biz/example/student/deleteAll','table1')">删&nbsp;除</button>
              </shiro:hasPermission>
			  <shiro:hasPermission name="com.maoye.ossp.biz.example.Student:add">
              	<button type="button" class="btn btn-info btn_3 btn_right" onclick="window.open('${contextPath}/biz/example/student/add','_self')">新&nbsp;建</button>
              </shiro:hasPermission>
        </div>   
		<tags:message content="${message}"/>
		<div class="o-l-search-builder f_9">
			<table class="table table-striped table-hover o-l-table table-bordered" id="table1">
				<thead class="t_1">
					<tr>
						<th style="width: 1px"><input type="checkbox" data-ckb="all"></th>
						<th>名称</th>
						<th>创建人</th> 
						<th>创建时间</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${page.list}" var="student">
						<tr data-herf="${contextPath}/biz/example/student/${student.id}/view" data-target="_self">
							<td class="o-l-tab-ckb">
								<input type="checkbox" data-ckb-id="${student.id}">
							</td>
							<td>${student.name}</td>
							<td>${student.createBy}</td> 
							<td><fmt:formatDate value="${student.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
        </div>
		<pager:pager pageSize="${page.pageSize}" pageNo="${page.pageNo}" url="" total="${page.total}"/>
		<script type="text/javascript" src="${staticPath}/js/list.js"></script>
  </form:form>
</body>
</html>